<template>
    <div class="zhongbiao-analysis-enter">
        <analysis 
            v-if="isLogin && isHavingPower" 
            :isHavingPower="isHavingPower" 
            :company="company" 
        ></analysis>

        <shade 
            v-if="!isHavingPower" 
            type="analysis" 
            :surplusNum="surplusNum" 
            imgType="zb"
            :isHavingPower="isHavingPower" 
            :isLogin="isLogin" 
            @use="$emit('use')" 
            @afterBuy="$emit('afterBuy')" 
        ></shade>
    </div>
</template>

<script>
import Analysis from './analysis.vue';
import Shade from '../../components/shade.vue';

import currentImg from '@images/portraits/zb-charts-1.png';

export default {
    components: {
        Analysis,
        Shade,
    },
    props: {
        isLogin: {
            type: Boolean,
            default: false,
        },
        isHavingPower: {
            type: Boolean,
            default: false,
        },
        surplusNum: {
            type: Number,
            default: 0
        },
        company: {
            type: String,
            default: '',
        },
    },
    data() {
        return {
            currentImg,
        };
    },
    methods: {
        
    },
    
    mounted() {
        
    },
  
};
</script>

<style lang="scss" scoped>
@import '@css/var.scss';
.zhongbiao-analysis-enter {
    
}
</style>